package com.example.ui;

import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;

import androidx.appcompat.app.AppCompatActivity;


public class MainActivity extends AppCompatActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
        Button  btn1 = (Button) findViewById(R.id.button1);
        btn1.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                Intent intent_to_linear =(Intent) new Intent(MainActivity.this,Linear.class);
                startActivity(intent_to_linear);
            }
        });

        Button  btn2 = (Button) findViewById(R.id.button2);
        btn2.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                Intent intent_to_relative =(Intent) new Intent(MainActivity.this,Relative.class);
                startActivity(intent_to_relative);
            }
        });

        Button  btn3 = (Button) findViewById(R.id.button3);
        btn3.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                Intent intent_to_frame =(Intent) new Intent(MainActivity.this,Frame.class);
                startActivity(intent_to_frame);
            }
        });

        Button  btn4 = (Button) findViewById(R.id.button4);
        btn4.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                Intent intent_to_table =(Intent) new Intent(MainActivity.this,Table.class);
                startActivity(intent_to_table);
            }
        });

        Button  btn5 = (Button) findViewById(R.id.button5);
        btn5.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                Intent intent_to_grid =(Intent) new Intent(MainActivity.this,Grid.class);
                startActivity(intent_to_grid);
            }
        });
    }
}